#include "serve.h"
#include "client.h"
#include "head.h"

int to_work(int net_fd){

    while(1){

        char buf[64] = {0};
        int instruction_type = 0;


        int recv_byte = recv(net_fd, &instruction_type, sizeof(int), 0);
        if(recv_byte == 0){
            printf("对方连接已断开\n");
            return 0;
        }

        printf("%d\n", instruction_type);

        switch(instruction_type){
        case RM:
            break;
        case LS:
            break;
        case MKDIR:
            break;
        case PUTS:
            break;
        case GETS:
            break;
        case CD:
            break;
        default:
            break;
        }



    }


    return 0;
}
